$OpenBSD: patch-engine_Canna_c,v 1.1 2010/05/19 14:05:37 espie Exp $
--- engine/Canna.c.orig	Wed Jun 28 18:13:26 1995
+++ engine/Canna.c	Wed May 19 16:02:05 2010
@@ -24,6 +24,8 @@ int KanakanExists;
 
 #include <canna/RK.h>
 #include <canna/jrkanji.h>
+#include <string.h>
+#include <stdio.h>
 #include "onew.h"
 #include "Canna_euc.h"
 
@@ -35,6 +37,8 @@ static int CID;
 static int nbunsetsu;
 int ONEW_CannarcDone;
 
+static void disp_kanji_buf(int);
+
 static ONEWkanakan_ready()
 {	char path[1024];
 	char dics[1024];
@@ -102,7 +106,6 @@ static ONEWkanakan(startch, yomi)
 	int comch;
 	int rcode;
 	char yomibuf[1024];
-	static disp_kanji_buf();
 
 	Onew_setupYomistr(startch,yomi,yomibuf);
 	yomi = yomibuf;
@@ -182,7 +185,7 @@ static ONEWexternal_henkan()
 {
 }
 
-static disp_kanji_buf(so)
+static void disp_kanji_buf(so)
 {	char kanji[1024];
 	char left[1024],cur[1024],right[1024];
 	int curbi,bi;
